package com.bq.server.core.mapper;

import com.bq.server.base.BaseMapper;
import com.bq.server.core.model.CadreRelationsInfo;

import java.util.List;

/**
 * @author shchen
 */
public interface CadreRelationsInfoMapper extends BaseMapper<CadreRelationsInfo> {

    default List<CadreRelationsInfo> findListByCadreId(Long cadreId) {
        return this.lambdaQuery()
                .eq(CadreRelationsInfo::getCadreAppointId, cadreId)
                .list();
    }

    void deleteByCadreId(Long id);
}